<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>购物车列表</title>
	<hdjs/>
	<css file="__CONTROLLER_VIEW__/css/index.css">
	<js file="__CONTROLLER_VIEW__/js/index.js"/>
</head>
<body>
	<div id="top">
		<div class="logo">
			<a href="{|U:'Index/index'}"><img src="__CONTROLLER_VIEW__/img/logo.jpg" alt=""></a>
		</div>
		<ul class="middle">
			<li class="cur">1.我的购物车</li>
			<li>2.确认订单信息</li>
			<li>3.成功提交订单</li>
		</ul>
		<div class="right">
			<img src="__CONTROLLER_VIEW__/../Index/img/tel.jpg" alt="" />
		</div>
	</div>
	<if value="{$hd.session.cart.totalNum}">
	<div id="info">
		<div class="chk">
			<div class="tt">我的购物车</div>
			<if value="{$hd.session.user.uid}">
			<else>
			<div class="info">
				现在 <a href="{|U:'Index/login'}" class="btn">登录</a> ，您购物车中的商品将被永久保存
			</div>
			</if>
		</div>
		<div class="title">尊敬的用户，珍品网承诺：所售商品100%正品，7天退换货。北京五环内用户提供6小时送达和时尚顾问亲自送货服务。祝您购物愉快！</div>
		<div class="hd-form">
			<table class="table2">
				<thead>
					<tr>
						<td class="w50"><input type="checkbox" checked="checked"/> 全选</td>
						<td class="w300">商品名称</td>
						<td class="w100" align="center">数量</td>
						<td>单价</td>
						<td>合计</td>
						<td>操作</td>
					</tr>
				</thead>
				<list from="$hd.session.cart.goods" name='$c'>
					<tr id="{$c.cart_id}">
						<td><input type="checkbox" name="" checked="checked"/></td>
						<td  class="goods_name">
							<img src="__ROOT__/{$c.img}" alt="">
							<a href="{|U:'Index/content',array('gid'=>$c['gid'])}">{$c.goods_name} {$c.attr_value}</a>
						</td>
						<td align="center">
							<span onclick='changePrice("{$c.cart_id}",0);'>[-]</span>
							<input type="text" name='num' value='{$c.num}' class="w30" style="text-align:center;" />
							<span onclick='changePrice("{$c.cart_id}",1);'>[+]</span>
						</td>
						<td><i class="price">￥ {$c.price}</i></td>
						<td><i class="totalPrice">￥ {$c.totalPrice}</i></td>
						<td>
							<a href="javascript:;" onclick='delGoods("{$c.cart_id}")'>删除</a>
						</td>
					</tr>
				</list>
			</table>
		</div>
		<div class="count">
			<div class="right">
				<p class="one">
					<span id="totalNum">{$hd.session.cart.totalNum}</span> 件 商品 总计：
					<strong>￥<span id="totalPrice">{$hd.session.cart.totalPrice}</span></strong>
				</p>
			</div>
		</div>
		<div class="account">
			<strong>总计（免运费）：</strong> ￥ <span id="totalPrice2">{$hd.session.cart.totalPrice}</span>
		</div>
		<div class="last">
			<a href="__ROOT__" class="continue">继续购物</a>
			<a href="javascript:;" class="next" onclick="toOrder('{$hd.session.user.uid}')">去结算></a>
		</div>
	</div>
		
	<else>
		
		<div id="null">
			<p class="one">您的购物袋还是空的，赶紧行动吧！ </p>
			<p class="two">马上去<a href="__ROOT__">挑选宝贝</a></p>
		</div>
		
	</if>
	<!--未登录时触发登录注册层-->
	<div id="shade">
		<!--背景边框-->
		<div class="background"></div>
		<!--背景边框结束-->
	</div>
		<!--登录注册-->
	<div id="loginReg">
		<div class="title">
			<strong>您尚未登录</strong> <a href="javascript:;" class="close" onclick="loginClose()">X</a>
		</div>
		<div class="info">
			<div class="tab">
				<a href="javascript:;" class="loginBtn tabBtn cur" onclick="loginForm()">登录</a>
				<a href="javascript:;" class="regBtn tabBtn" onclick="regForm()">注册</a>
			</div>
			<form action="" method="post" id="loginForm" >
				<div class="con">
					<div class="line">
						<input type="text" name="username" placeholder="邮箱/手机号码/昵称" autocomplete="off"/>
					</div>
					<div class="line">
						<input type="password" name="password" placeholder="密码" autocomplete="off"/>
					</div>
					<div class="line" style="height: 17px;">
						<input type="hidden" name="remeberMe" value="0"/>
						<label class="chk"><input type="checkbox" name="remeberMe" value="1"/>记住我（下次自动登录）</label>
						<a href="" class="forget">忘记密码？</a>
					</div>
					<div class="line" style="margin-top: 10px;">
						<a href="javascript:;" onclick="userLogin()" class="button">登录</a>
					</div>
					<div class="go">
						<p>
							现在还不是奢品网用户？<a href="{|U:'Login/reg'}">免费注册</a>
						</p>
					</div>
				</div>
				<div class="partner">
				<p>合作网站账户登录</p>
				<ul>
					<li>
						<a href="" title="QQ登录" class="qq"></a>
						<a href="" title="支付宝登陆" class="zhifubao"></a>
						<a href="" title="新浪微博" class="sina"></a>
					</li>
				</ul>
			</div>
			</form>	
			<form action="" method="post" id="regForm">
				<div class="con">
					<div class="line">
						<input type="text" name="username" placeholder="手机/邮箱" autocomplete="off"/>
					</div>
					<div class="line">
						<input type="password" name="password" placeholder="密码" autocomplete="off"/>
					</div>
					<div class="line">
						<input type="password" name="repassword" placeholder="确认密码" autocomplete="off"/>
					</div>
					<div class="chkCode line">
						<input type="text" name="code" placeholder="验证码" autocomplete="off"/>
						<a href="javascript:;" class="code" onclick="var oImg=document.getElementById('img');oImg.src='{|U:'code'}&'+Math.random();">
							<img src="{|U:'code'}" id="img"/>
							换一张
						</a>
					</div>
					<div class="line" style="height: 17px;">
						<label class="chk"><input type="checkbox" name="agree" value="1" id="agree" checked=""/>我已阅读并同意</label><u>奢品用户注册协议</u>
					</div>
					<div class="line" style="margin-top: 10px;">
						<a href="javascript:;" onclick="regUser()" class="button reg">注册</a>
					</div>
				</div>
			</form>
		</div>
	</div>
		<!--登录注册结束-->
	<!--登录注册触发层结束-->
	<div id="other">
		<div class="title"><a href="javascript:;"><if value="{$hd.session.cart.totalNum}">购买此商品的人还购买了<else>推荐精品</if></a></div>
		<ul>
			<li>
				<p><a href=""><img src="__CONTROLLER_VIEW__/img/l1.jpg" alt="" /></a></p>
				<p>
					<a href=""><span class="brand">Swarovski</span>施华洛世奇 水晶自然色 钻石切割式 SOLITAIRE款耳饰 ZXH 1800046</a>
				</p>
				<p>
						￥418&nbsp;&nbsp;<del> ￥720</del>
				</p>
			</li>
			<li>
				<p><a href=""><img src="__CONTROLLER_VIEW__/img/l1.jpg" alt="" /></a></p>
				<p>
					<a href=""><span class="brand">Swarovski</span>施华洛世奇 水晶自然色 钻石切割式 SOLITAIRE款耳饰 ZXH 1800046</a>
				</p>
				<p>
						￥418&nbsp;&nbsp;<del> ￥720</del>
				</p>
			</li>
			<li>
				<p><a href=""><img src="__CONTROLLER_VIEW__/img/l1.jpg" alt="" /></a></p>
				<p>
					<a href=""><span class="brand">Swarovski</span>施华洛世奇 水晶自然色 钻石切割式 SOLITAIRE款耳饰 ZXH 1800046</a>
				</p>
				<p>
						￥418&nbsp;&nbsp;<del> ￥720</del>
				</p>
			</li>
			<li>
				<p><a href=""><img src="__CONTROLLER_VIEW__/img/l1.jpg" alt="" /></a></p>
				<p>
					<a href=""><span class="brand">Swarovski</span>施华洛世奇 水晶自然色 钻石切割式 SOLITAIRE款耳饰 ZXH 1800046</a>
				</p>
				<p>
						￥418&nbsp;&nbsp;<del> ￥720</del>
				</p>
			</li>
			<li>
				<p><a href=""><img src="__CONTROLLER_VIEW__/img/l1.jpg" alt="" /></a></p>
				<p>
					<a href=""><span class="brand">Swarovski</span>施华洛世奇 水晶自然色 钻石切割式 SOLITAIRE款耳饰 ZXH 1800046</a>
				</p>
				<p>
						￥418&nbsp;&nbsp;<del> ￥720</del>
				</p>
			</li>
		</ul>
	</div>
	<div id="bottom">
		<p>Copyright © 2011-2014 珍品网-中国领先的奢侈品购物网站 | 世界顶级奢侈品品牌网购网站</p>
	</div>
</body>
</html>